package com.ruoyi.healthCard.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 样本采集对象 t_biz_sample_collection
 *
 * @author ruoyi
 * @date 2025-07-07
 */
public class TBizSampleCollection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** Id */
    private Long id;

    /** 样本 ID */
    @Excel(name = "样本 ID")
    private Long sampleId;

    /** 体检人员ID */
    @Excel(name = "体检人员ID")
    private Long personId;

    /** 样本类型 */
    @Excel(name = "样本类型")
    private String sampleType;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectionTime;

    /** 采集地点 */
    @Excel(name = "采集地点")
    private String collectionPlace;

    /** 样本条码 */
    @Excel(name = "样本条码")
    private String barcode;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setSampleId(Long sampleId)
    {
        this.sampleId = sampleId;
    }

    public Long getSampleId()
    {
        return sampleId;
    }

    public void setPersonId(Long personId)
    {
        this.personId = personId;
    }

    public Long getPersonId()
    {
        return personId;
    }

    public void setSampleType(String sampleType)
    {
        this.sampleType = sampleType;
    }

    public String getSampleType()
    {
        return sampleType;
    }

    public void setCollectionTime(Date collectionTime)
    {
        this.collectionTime = collectionTime;
    }

    public Date getCollectionTime()
    {
        return collectionTime;
    }

    public void setCollectionPlace(String collectionPlace)
    {
        this.collectionPlace = collectionPlace;
    }

    public String getCollectionPlace()
    {
        return collectionPlace;
    }

    public void setBarcode(String barcode)
    {
        this.barcode = barcode;
    }

    public String getBarcode()
    {
        return barcode;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("sampleId", getSampleId())
                .append("personId", getPersonId())
                .append("sampleType", getSampleType())
                .append("collectionTime", getCollectionTime())
                .append("collectionPlace", getCollectionPlace())
                .append("barcode", getBarcode())
                .append("status", getStatus())
                .toString();
    }
}